package cn.lizemin.fakedata.common;

import lombok.Getter;

/**
 * @author 李泽民
 * @Date 2024/1/19 16:50
 * @Description
 */
@Getter
public class BusinessException extends RuntimeException {

    private final ResultEnum resultEnum;

    public BusinessException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
        this.resultEnum = resultEnum;
    }

}
